inverse of a function domain and range